<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
	<h:head>
		<title>JBoss-Esb-Adaptative - Admin Console</title>
		<h:outputStylesheet library="css" name="layout.css" />
		<link rel="icon" type="image/png" href="#{facesContext.externalContext.requestContextPath}/resources/images/favicon.png" />
		<link rel="apple-touch-icon" href="#{facesContext.externalContext.requestContextPath}/resources/images/favicon.png" />
	</h:head>
	<h:body>
		<div class="container">
			<!-- Start header -->
			<div class="header">
				<div style="float: left">
					<span class="headerText">
						<h:graphicImage id="image" alt="Logo" library="images" name="logo.png" height="36"/>
						JBoss-Esb-Adaptative Admin Console
					</span>
				</div>
			</div>
			<!-- Start content -->
			<div class="content">
				<h:form id="form-content" prependId="false">
					<p:growl id="msg" autoUpdate="true" />
					<div class="clear-box"/>
					<div class="ui-corner-all login-box">
						<p>Welcome to the JBoss ESB Adaptative Admin Console.</p>
						<p>Please login to proceed.</p>
						
						<h:panelGrid columns="2" cellpadding="5">
							<h:outputText value="Username: "/>
							<p:inputText value="#{loginController.username}" required="true" requiredMessage="Please enter a username and try again." />
							
							<h:outputText value="Password: "/>
							<p:inputText type="password" value="#{loginController.password}" required="true" requiredMessage="Please enter a password and try again." />
							
							<p:spacer/>
							<p:commandButton value="Login" action="#{loginController.checkAccess}" update="form-content" />
						</h:panelGrid>
					</div>
					<div class="clear-box"/>
				</h:form>
			</div>
			<!-- Start footer -->
			<div class="footer">
				<div class="footerText">
					JBoss-Esb-Adaptative - Admin Console 1.0 SNAPSHOT - Powered by <a href="http://jboss.org/embjopr/" title="Embedded Jopr">Proyecto de Grado 2012</a>
       				<br />
       				© 2012-2012 INCO.  All rights reserved.  JBoss ESB Adaptative is a registered.
   				</div>
 			</div>
		</div>
	</h:body>
</html>